import axios from '@/libs/api.request'

// 店铺页面_团购统计查询
export const shopGroupBuyingQuery = (data) => {
  return axios.request({
    url: '/sales/crs/groupbuying/daily',
    method: 'post',
    data: data
  })
}

// 店铺页面_团购统计详情查询
export const shopGroupBuyingDetail = (data) => {
  return axios.request({
    url: '/sales/crs/groupbuying/list',
    method: 'post',
    data: data
  })
}

// 店铺页面_微信统计列表查询
export const shopWxStatistics = (data) => {
  return axios.request({
    url: '/sales/crs/wechat/exchange/daily',
    method: 'post',
    data: data
  })
}

// 店铺页面_店面日汇总
export const dailyanalytics = (data) => {
  return axios.request({
    url: '/sales/crs/shop/kpi/daily',
    method: 'post',
    data: data
  })
}

// 店铺页面_每日结账 everydaycheckout
export const everydaycheckout = (data) => {
  return axios.request({
    url: '/sales/daily/query',
    method: 'post',
    data: data
  })
}
// 店铺页面_每日结账 everydaycheckout
// // 用户查询
export const userQuery = (data) => {
  return axios.request({
    url: '/sales/user/query',
    method: 'post',
    data: data
  })
}

// 店铺页面_每日结账 /sales/user/password/validate
// // 密码校验
export const passwordValidate = (data) => {
  return axios.request({
    url: '/sales/user/password/validate',
    method: 'post',
    data: data
  })
}
// 店铺页面_每日结账  /sales/daily/settle
// // 数据提交
export const everySubmit = (data) => {
  return axios.request({
    url: '/sales/daily/settle',
    method: 'post',
    data: data
  })
}

// 店铺页面_新店转卡   /sales/transfer/member/asset/page -- 张菁
// // 列表查询
export const newShopPage = (data) => {
  return axios.request({
    url: '/sales/transfer/member/asset/page',
    method: 'post',
    data: data
  })
}
// 店铺页面_每日结账 /sales/daily/record

// // 数据查询
export const newShopRecord = (data) => {
  return axios.request({
    url: '/sales/daily/record',
    method: 'post',
    data: data
  })
}
// 当日游戏币出入库统计查询
export const shopConinDaily = (data) => {
  return axios.request({
    url: '/sales/crs/coin/stock/daily',
    method: 'post',
    data: data
  })
}
// 分类统计
export const shopCoinCashier = (data) => {
  return axios.request({
    url: '/sales/crs/coin/cashier/daily',
    method: 'post',
    data: data
  })
}
// 领用数
export const shopStockReceive = (data) => {
  return axios.request({
    url: '/sales/crs/statistic/coin/stock/receive/list',
    method: 'post',
    data: data
  })
}
// 出币数
export const shopStockMoveout = (data) => {
  return axios.request({
    url: '/sales/crs/coin/stock/moveout/list',
    method: 'post',
    data: data
  })
}
// 入币数
export const shopStockMovein = (data) => {
  return axios.request({
    url: '/crs/statistic/coin/stock/movein/list',
    method: 'post',
    data: data
  })
}

// 兑换卷统计查询 /sales/statistic/pkg/coupon/daily -- 吴晖
export const shopCoincertificateQuery = (data) => {
  return axios.request({
    url: '/sales/crs/statistic/pkg/coupon/daily',
    method: 'post',
    data: data
  })
}
// 套餐统计查询 /sales/crs/statistic/pkg/daily -- 吴晖
export const shopcoincertificatePkg = (data) => {
  return axios.request({
    url: '/sales/crs/statistic/pkg/daily',
    method: 'post',
    data: data
  })
}
// 兑换券明细查询 /sales/crs/statistic/pkg/coupon/list -- 吴晖

export const shopcoincertificateList = (data) => {
  return axios.request({
    url: '/sales/crs/statistic/pkg/coupon/list',
    method: 'post',
    data: data
  })
}

// 套餐明细查询 /sales/crs/statistic/pkg/list -- 吴晖

export const shopcoincertificatePkgList = (data) => {
  return axios.request({
    url: '/sales/crs/statistic/pkg/list',
    method: 'post',
    data: data
  })
}
//  运营_基础数据分析  /sales/crs/statistic/basic/machine/daily
export const shopBasicMachine = (data) => {
  return axios.request({
    url: '/sales/crs/statistic/basic/machine/daily',
    method: 'post',
    data: data
  })
}
// 查询会员资产转移记录各资产总数量
export const shopTransferMember = (data) => {
  return axios.request({
    url: 'sales/transfer/member/asset/sum',
    method: 'post',
    data: data
  })
}
// 会员结存
// // 查询会员档案详情
export const memberDetails = (data) => {
  return axios.request({
    url: '/sales/member/info/query',
    method: 'post',
    data: data
  })
}
// // 查询会员档案卡片记录
export const memberCatd = (data) => {
  return axios.request({
    url: '/sales/member/card/lose/query',
    method: 'post',
    data: data
  })
}
// // 查询会员档案购买明细
export const memberBuy = (data) => {
  return axios.request({
    url: '/sales/member/asset/buy/query',
    method: 'post',
    data: data
  })
}
// // 会员档案购买统计查询
export const memberBuySummary = (data) => {
  return axios.request({
    url: '/sales/member/asset/buy/summary',
    method: 'post',
    data: data
  })
}
// // 查询会员档案存取兑明细
export const membeChange = (data) => {
  return axios.request({
    url: '/sales/member/asset/change/query',
    method: 'post',
    data: data
  })
}
// // 会员档案存取兑统计查询
export const membeChangeSummary = (data) => {
  return axios.request({
    url: '/sales/member/asset/trade/summary',
    method: 'post',
    data: data
  })
}
// // 查询会员档案游玩明细
export const memberPlay = (data) => {
  return axios.request({
    url: '/sales/member/asset/playrecord/query',
    method: 'post',
    data: data
  })
}
// // 会员档案游玩统计查询
export const memberPlaySummary = (data) => {
  return axios.request({
    url: '/sales/member/asset/play/summary',
    method: 'post',
    data: data
  })
}
// // 会员按照注册来源进行统计
export const memberStatBySource = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/member/channel',
    method: 'post',
    data: data
  })
}
// // 会员按照等级进行统计
export const memberStatByLevel = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/member/level',
    method: 'post',
    data: data
  })
}
// 会员等级列表
export const getMemberLevelList = (data) => {
  return axios.request({
    url: '/merchant/member/level/query',
    method: 'post',
    data: data
  })
}
// 会员结存统计
export const getMemberList = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/member/asset_balance/list',
    method: 'post',
    data: data
  })
}
// 会员结存统计导出
export const getMemberListExport = (data) => {
  return axios.request({
    url: '/crs/statistic/member/asset_balance/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 会员结存统计导出
export const getMemberListCount = (data) => {
  return axios.request({
    url: `/oms/merchant/crs/statistic/member/asset_balance/old/count`,
    method: 'post',
    data: data
  })
}
// 每日结账明细提交
export const everyDetailSubmit = (data) => {
  return axios.request({
    url: `/sales/daily/correct`,
    method: 'post',
    data: data
  })
}
